<%@ page language="java" pageEncoding="utf-8" %>
<%@taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="css/onlineSearch/footer.css" rel="stylesheet" type="text/css"/>
    <link href="css/onlineSearch/header.css" rel="stylesheet" type="text/css"/>
    <link href="css/onlineSearch/aboutusmid.css" rel="stylesheet" type="text/css"/>
    <link href="css/onlineSearch/en_title_fix.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="<s:url value="js/jquery/jquery-1.8.0.min.js"/>"></script>

    <script type="text/javascript">
        window.onload = function () {
            if (location.href.indexOf("inPort") != -1) {
                document.getElementById("qtype2").checked = true;
            }
        };
        function queryMessage() {
            if ($.trim(document.getElementById("containt").value) == "" && $.trim(
                            document.getElementById("so").value) == "") {
                alert("请输入查询条件");
            }
            else if ($.trim(document.getElementById("mycode").value) == "") {
                alert("请输入验证码");
            }
            else {
                var qtype = $.trim(document.getElementById("qtype1").value);
                if (document.getElementById("qtype2").checked) {
                    qtype = $.trim(document.getElementById("qtype2").value);
                }//http://219.130.222.62:9292
                var url = "http://112.124.20.178:9292/YMS2/queryOut?CONTAINER_NO=" + $.trim(
                                document.getElementById("containt").value)
                          + "&BOOKING_NO=" + $.trim(document.getElementById("so").value)
                          + "&queryType=" + qtype + "&queryType_0=" + $.trim(
                                document.getElementById("qtype11").value);
                window.open(url, "_blank");
            }
        }
    </script>
</head>

<body>
<div id="layout_r"
     style="background: url('img/sever_background.jpg') no-repeat; width: 660px; height: 270px;padding-top: 1px;">
    <div style="margin: 135px 0 0 144px;">
        <input style="border: 0" type="text" name="CONTAINER_NO"
               id="containt"/> <input style="border: 0; margin-left: 99px;"
                                      type="text" name="BOOKING_NO" id="so"/>
    </div>
    <div style="margin: 18px 0 0 161px;">
        <input style="margin: 0 0 0 5px;" name="queryType" type="radio"
               value="0" checked="checked" id="qtype1"/> <select
            style="margin-left: 38px;" id="qtype11" name="queryType_0">
        <option value="0">拖车</option>
        <option value="1">码头内装</option>
    </select> <input style="margin-left: 18px;" name="queryType" type="radio"
                     value="1" id="qtype2"/>
    </div>
    <div style="margin: -3px 0 0 145px;">
        <input style="border: 0; border: none;" class=wenbenkuang
               name="code" type=text value="" id="mycode"/> <img
            style="margin-left: 15px;"
            src="http://112.124.20.178:9292/YMS2/image.jsp"/> <input
            type="button" onclick='queryMessage()'
            style="background: url('img/sever_btn.jpg') no-repeat 0 -11px; border-style: none; width: 95px; height: 32px; margin-left: 15px;"/>
    </div>
</div>
</body>
</html>
